package util

import (
	"os"
	"path"
)

func CreateFolderExpireDay(root string, expire int) error {
	folderName := FolderNameAfter(expire)
	folderPath := path.Join(root, folderName)
	if err := os.MkdirAll(folderPath, os.ModePerm); err != nil {
		return err
	}
	return nil
}
func CreateFolderExpireSubFolder(root string, expire int, sub string) error {
	folderName := FolderNameAfter(expire)
	folderPath := path.Join(root, folderName, sub)
	if err := os.MkdirAll(folderPath, os.ModePerm); err != nil {
		return err
	}
	return nil
}
